package com.cxl.price.bean;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import com.summer.core.common.BeanName;
import com.summer.core.entity.BaseBean;

@Entity
@BeanName("其他图片")
public class Imgs  extends BaseBean{
	
	private static final long serialVersionUID = 3425653590686830272L;
	private String img_url;
	private Goods goods;
	private Long img_id;
	public String getImg_url() {
		return img_url;
	}
	public void setImg_url(String imgUrl) {
		img_url = imgUrl;
	}
    @ManyToOne(
            cascade ={CascadeType.REFRESH},
            fetch=FetchType.LAZY
    )
	public Goods getGoods() {
		return goods;
	}
	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	public Long getImg_id() {
		return img_id;
	}
	public void setImg_id(Long imgId) {
		img_id = imgId;
	}
	
}
